﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using QuanLyDeTaiKHCN.Obj_class;
using System.Web.Security;
namespace QuanLyDeTaiKHCN
{
    public partial class Login : System.Web.UI.Page
    {
        public bool flag = false;
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnlogin_Click(object sender, EventArgs e)
        {
            if (MemberShip_ASP.Login(txtusername.Text, txtpassword.Text.Trim()))//new dang nhap thanh cong
            {
                FormsAuthentication.RedirectFromLoginPage(txtusername.Text, false);
            }
            else
            {
                flag = false;
            }
        }
    }
}